package com.e0box.game.event
{
	import flash.events.Event;
	import flash.utils.ByteArray;
	
	public class LocalDataServerEvent extends Event
	{
		public static const SAVE_COMPLETE:String = "saveComplete";
		public static const LOAD_COMPLETE:String = "loadComplete";
		public static const SAVE_PROGRESS:String = "saveProgress";
		public static const LOAD_PROGRESS:String = "loadProgress";
		
		public var loaded:Number;
		public var total:Number;
		public var pending:Number;
		
		public var bytes:ByteArray;
		
		public function LocalDataServerEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event{
			var tmp:LocalDataServerEvent = new LocalDataServerEvent(this.type, this.bubbles, this.cancelable);
			tmp.loaded = this.loaded;
			tmp.total = this.total;
			tmp.bytes = this.bytes;
			
			return tmp;
		}
	}
}